package com.holike.crm.model.activity;

import com.holike.crm.base.BaseModel;
import com.holike.crm.bean.MessageDetailsBean;
import com.holike.crm.http.MyHttpClient;
import com.holike.crm.http.RequestCallBack;
import com.holike.crm.http.UrlPath;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by wqj on 2018/2/25.
 * 消息详情
 */

public class MessageDetailsModel extends BaseModel {

    /**
     * 获取消息详情
     */
    public void getMessageDetails(String messageId, String type, RequestCallBack<MessageDetailsBean> callBack) {
        Map<String, String> params = new HashMap<>();
        params.put("messageId", messageId);
        params.put("type", type);
        postByTimeout(UrlPath.URL_GET_MESSAGE_INFO, params, 60, callBack);
    }
}
